package cn.codeinn.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import cn.codeinn.api.client.MemberClient;
import cn.codeinn.model.vo.MemberVO;

@RequestMapping(value = "/member")
@RestController
public class MemberController {

	@Autowired
	private MemberClient memberClient;

	@GetMapping(value = "/{id}")
	public MemberVO selectMemberByID(@PathVariable("id") Integer id) {
		return memberClient.selectMemberByID(id);
	}
}
